package de.szut.entity;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;

/**
 * Created by dzebcuks on 23.08.13.
 */
public class OperatingSystems implements Serializable, Iterable<OperatingSystem> {

    private OperatingSystem windows;

    private OperatingSystem mac;

    private OperatingSystem linux;

    private List<OperatingSystem> operatingSystemList;

    public OperatingSystem getWindows() {
        return windows;
    }

    public void setWindows(OperatingSystem windows) {
        this.windows = windows;
    }

    public OperatingSystem getMac() {
        return mac;
    }

    public void setMac(OperatingSystem mac) {
        this.mac = mac;
    }

    public OperatingSystem getLinux() {
        return linux;
    }

    public void setLinux(OperatingSystem linux) {
        this.linux = linux;
    }

    @Override
    public Iterator<OperatingSystem> iterator() {
        this.operatingSystemList = new ArrayList<OperatingSystem>();
        this.operatingSystemList.add(windows);
        this.operatingSystemList.add(linux);
        this.operatingSystemList.add(mac);
        return this.operatingSystemList.iterator();
    }
}

